home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Language/OS - Multiplatform Resource Library
/
LANGUAGE OS.iso
/
cpp_libs
/
varia
/
silo.lha
/
silo
/
README
< prev
next >
Wrap
Text File
|
1993-08-08
|
1KB
|
41 lines
/* $Author: sam $ $Date: 90/07/20 11:15:00 $ $Revision: 1.1 $ */
SILO : An event-based simulation platform.
----
S. Manoharan sam@lfcs.edinburgh.ac.uk
SILO is a library of C++ classes that provides building blocks
for constructing event-based discrete event simulations. It
provides four basic classes: Entity, Event, Resource and Bin.
Refer to
@book{MacDo87,
author = "M H MacDougall",
year = "1987",
publisher = "MIT Press",
title = "Simulating Computer Systems: Techniques and Tools"
}
for a discussion on event-based simulations and a C implementaion.
SILO closely follows the description of [MacDo87].
Class Bin is a FIFO buffer of size infinity. Method `give' adds to
the buffer; `take' removes from the buffer. `take' blocks when the
buffer is empty.
Event *cause ( void );
returns the event with the earliest time from the event list.
short cancel ( const int eid );
cancels the event with the event id eid; returns 1 if success;
double simtime ( void );
returns the current simulation time;
Notes:
-----
1. Use g++ version 1.37.1 or greater. The g++ class library provides
classes to generate random numbers.
2. SILO is tested under g++ 1.37.1. Test.c provides an example
explained in [MacDo87].